home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Disk / AliasZoo 2.0.4 folder / AliasZoo and AppleEvents < prev    next >
Text File  |  1993-11-11  |  3KB  |  52 lines

  1.                                     ••• AliasZoo and AppleEvents •••
  2.  
  3. Before we begin, let me assure you that if you don't know what AppleEvents are you won't need to read this document. If you do know what they are, and you want to know how they work with AliasZoo, then this is the place!
  4.  
  5. All versions of AliasZoo since version 2.0 have supported the standard four AppleEvents (Open, New, Quit, Print). However, version 2.0.3 added support for a number of new AppleEvents specific to AliasZoo. This document will include a description of these events, along with complete definitions for them (this will likely only interest those who REALLY enjoy playing with AppleEvents).
  6.  
  7. Along with the new events introduced in version 2.0.3, support was added for AppleScript. You can now use AppleScript to write scripts to control almost all of AliasZoo's actions. In fact, if you plan on using AppleScript you can probably avoid reading this document. Instead, start up the AppleScript editor and select "Open Dictionary..." from the editor's File menu. Select AliasZoo, and click "Open". You should now see a complete list of the entire AppleScript sytax for controlling AliasZoo. Have fun!
  8.  
  9. So, without further delay, let's start the show...
  10.  
  11.  
  12.             STANDARD EVENTS SUPPORTED BY AliasZoo
  13.  
  14.  
  15. Open - Starts AliasZoo. Does nothing if AliasZoo is already running.
  16.  
  17. New - Starts AliasZoo. Does nothing if AliasZoo is already running.
  18.  
  19. Quit - Quits AliasZoo.
  20.  
  21. Print - Prints AliasZoo's shareware registration form. Will require AliasZoo to come to the foreground.
  22.  
  23.  
  24.             EVENTS UNIQUE TO AliasZoo
  25.  
  26.  
  27. All events unique to AliasZoo are of the class 'kAZo'.
  28.  
  29. kFindEvent         'AZfd'
  30.         Sending this event to AliasZoo is the same as clicking the Find button.
  31.  
  32. kResolveEvent        'AZrs'
  33.         Sending this event is the same as clicking the Resolve button.
  34.  
  35. kDeleteEvent        'AZdl'    optional parameter:  Boolean 'pDlg'
  36.         Sending this is the same as clicking the delete button. Note that this will only work on alias files that are selected in the display. The boolean parameter 'pDlg' is true if you want AliasZoo to display a confirmation dialog before deleting. If the parameter is not provided, the default is to display a dialog. Also note that requesting AliasZoo to display the dialog will require it to come to the foreground.
  37.  
  38. kVolumeEvent        'AZsw'        required parameter:  Text 'pTo '
  39.         Sending this event, along with a text parameter 'pTo ' (notice that the fourth character is a space), will cause AliasZoo to switch to the volume named by 'pTo '. If you pass the name of a non-existant volume, AliasZoo reports an error and does nothing. Note, you cannot set AliasZoo to search a specific folder using AppleEvents.
  40.  
  41. kAttachEvent        'AZat'
  42.         Sending this event is the same as clicking the attach button. Note that this will only work on alias files that are selected in the display. Also note that sending this event will cause AliasZoo to switch to the foreground (or request that the user bring it to the front) so it can display the attach dialog(s).
  43.  
  44. kSelectEvent        'AZsl'
  45.         Not yet supported in this version.
  46.  
  47. kSetEvent        'AZse'
  48.         Not yet supported in this version.
  49.  
  50. kGetEvent        'AZge'
  51.         Not yet supported in this version.
  52.